led.bin:led.elf
	arm-linux-gnueabihf-objcopy -O binary -S -g led.elf led.bin
led.elf:led.o
	arm-linux-gnueabihf-ld led.o -o led.elf -Ttext 0X87800000
led.o:led.s
	arm-linux-gnueabihf-gcc -g -c led.s -o led.o -marm

.PHONY:clean
clean:
	rm -rf *.o *.bin *.elf *.imx
